package com.hjqjl.module_launcher.ui;

import android.content.Context;
import android.content.Intent;
import android.view.animation.Animation;

import com.hjqjl.common_lib.utils.AnimationUtils;
import com.hjqjl.module_launcher.databinding.LauncherActivityWelcomeBinding;
import com.hjqjl.whapplib.base.BaseActivity;

public class WelcomeActivity extends BaseActivity<LauncherActivityWelcomeBinding> {
    public static void start(Context context) {
        Intent starter = new Intent(context, WelcomeActivity.class);
        context.startActivity(starter);
    }

    @Override
    public void processLogic() {
        Animation animation = AnimationUtils.getAmplificationAnimation(2000, new Animation.AnimationListener() {
            @Override
            public void onAnimationStart(Animation animation) {

            }

            @Override
            public void onAnimationEnd(Animation animation) {
                finish();
            }

            @Override
            public void onAnimationRepeat(Animation animation) {

            }
        });
        pVBinding.launcherIvWelcomeBg.startAnimation(animation);
    }
}
